package com.xxgc.demo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author lxy
 * @since 2023-09-21
 */
@Getter
@Setter
@TableName("xxgc_demo_users")
@Schema(name = "DemoUsers", description = "")
public class DemoUsers implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "用户id")
    @TableId(value = "u_id", type = IdType.AUTO)
    private Long uId;

    @Schema(description = "用户昵称")
    private String name;

    @Schema(description = "用户邮箱")
    private String email;

    @Schema(description = "电话号码")
    private String phone;

    @Schema(description = "0男1女")
    private Byte sex;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "年龄")
    private Byte age;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
